package com.tedu.openmedical.medicalsystem.user.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tedu.openmedical.medicalsystem.base.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

@Getter
@Setter
@ToString
@TableName("sys_user")
public class User extends BaseEntity implements Serializable {

    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;

    @TableField(value = "dept_id")
    private Long deptId;

    @TableField(value = "job")
    private String job;

    @TableField(value = "emp_no")
    private String empNo;

    @TableField(value = "emp_name")
    private String empName;

    @TableField(value = "birthday")
    private String birthday;

    @TableField(value = "entry_date")
    private Date entryDate;


    @TableField(value = "nation")
    private String nation;

    @TableField(value = "marital_status")
    private String maritalStatus;

    @TableField(value = "address")
    private String address;

    @TableField(value = "graduate_school")
    private String graduateSchool;

    @TableField(value = "user_name")
    private String userName;

    @TableField(value = "password")
    private String password;

    @TableField(value = "user_type")
    private Integer userType;

    @TableField(value = "sex")
    private String sex;

    @TableField(value = "age")
    private Integer age;
    @TableField(value = "picture")
    private String picture;


    @TableField(value = "background")
    private String background;


    @TableField(value = "phone")
    private String phone;

    @TableField(value = "honor")
    private String honor;

    @TableField(value = "user_rank")
    private String userRank;

    @TableField(value = "remark")
    private String remark;

    @TableField(value = "last_login_time")
    private Date lastLoginTime;

    @TableField(value = "last_login_ip")
    private String lastLoginIp;

    @TableField(value = "status")
    private String status;


    @TableField(value = "union_id")
    private String unionId;

    @TableField(value = "open_id")
    private String openId;

    @TableField(value = "create_by")
    private String createBy;

    @TableField(value = "create_time")
    private Date createTime;

    @TableField(value = "update_by")
    private String updateBy;

    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(value = "salt")
    private String salt;

    @TableField(value = "del_flag")
    private String delFlag;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    public static final String COL_USER_ID = "user_id";
    public static final String COL_DEPT_ID = "dept_id";
    public static final String COL_JOB = "job";
    public static final String COL_EMP_NO = "emp_no";
    public static final String COL_EMP_NAME = "emp_name";
    public static final String COL_BIRTHDAY = "birthday";
    public static final String COL_ENTRY_DATE = "entry_date";
    public static final String COL_NATION = "nation";
    public static final String COL_MARITAL_STATUS = "marital_status";
    public static final String COL_ADDRESS = "address";
    public static final String COL_GRADUATE_SCHOOL = "graduate_school";
    public static final String COL_USER_NAME = "user_name";
    public static final String COL_PASSWORD = "password";
    public static final String COL_USER_TYPE = "user_type";
    public static final String COL_SEX = "sex";
    public static final String COL_AGE = "age";
    public static final String COL_PICTURE = "picture";
    public static final String COL_BACKGROUND = "background";
    public static final String COL_PHONE = "phone";
    public static final String COL_HONOR = "honor";
    public static final String COL_USER_RANK = "user_rank";
    public static final String COL_REMARK = "remark";
    public static final String COL_LAST_LOGIN_TIME = "last_login_time";
    public static final String COL_LAST_LOGIN_IP = "last_login_ip";
    public static final String COL_STATUS = "status";
    public static final String COL_UNION_ID = "union_id";
    public static final String COL_OPEN_ID = "open_id";
    public static final String COL_CREATE_BY = "create_by";
    public static final String COL_CREATE_TIME = "create_time";
    public static final String COL_UPDATE_BY = "update_by";
    public static final String COL_UPDATE_TIME = "update_time";
    public static final String COL_SALT = "salt";
    public static final String COL_DEL_FLAG = "del_flag";
}
